// Package Model /*
package Model

import "gorm.io/gorm"

type ProjectModel struct {
	BaseModel
	TmxProjectId       string `gorm:"primaryKey" json:"tmx_project_id"`
	TmxProjectName     string `json:"tmx_project_name"`
	TmxProjectDescribe string `json:"tmx_project_describe"`
	CreatedAt          MyTime `json:"tmx_created_at"`
}

// GetConnection
//
//	@Description: 连接池名称
//	@receiver projectModel
//	@return string
func (projectModel ProjectModel) GetConnection() string {
	return "default"
}

// TableName
//
//	@Description: 表名称
//	@receiver projectModel
//	@return string
func (projectModel ProjectModel) TableName() string {
	return "tmx_project"
}

// GetModel
//
//	@Description: 获取实例
//	@receiver projectModel
//	@return *gorm.DB
func (projectModel ProjectModel) GetModel() *gorm.DB {
	return projectModel.LoadModel(projectModel)
}
